﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
 

namespace WorkBasket.Data.Entities
{
    public class DisplayControl
    {

        [Key]
        public int DisplayControlID { get; set; }
        public int ParentID { get; set; }//recurses  
        //TODO:  How to do recursive structures in EF


       

        public virtual Field Field { get; set; } //Field if any,  if no field,  its just form structure
        public int FieldID { get; set; }

        public int ControlTypeID { get; set; }
        public virtual ControlType Type { get; set; }
        public int ControlValidationID { get; set; }
        public virtual ControlValidation ControlValidation  { get; set; }

    }
}
